package com.pinxixi.api.order;

import com.pinxixi.framework.domain.cart.ItemCart;
import com.pinxixi.framework.domain.order.OrderEntity;
import com.pinxixi.framework.model.response.ListResponseResult;
import com.pinxixi.framework.model.response.QueryResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Api(value="订单微服务API",description = "订单接口")
public interface OrderControllerApi {

    @ApiOperation("生成预订单")
    QueryResponseResult createPreOrder(List<ItemCart> list);

    @ApiOperation("获取预订单")
    ListResponseResult getPreOrder(String id);

    @ApiOperation("生成订单")
    QueryResponseResult createPreOrder(OrderEntity orderEntity, HttpServletRequest request);

    @ApiOperation("获取订单")
    QueryResponseResult getOrder(String id);
}
